home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1656 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  47 lines

  1. Path: brazerko.com!tcassel
  2. From: tcassel@brazerko.com (tcassel)
  3. Newsgroups: comp.lang.c
  4. Subject: ATTENTION C EXPERTS!! Extern Declarations - NEED HELP!
  5. Message-ID: <DCD9516F@brazerko.com>
  6. Date: Mon, 15 Jan 96 04:29:21 -0500
  7. Organization: Brazerko Communications
  8. Organization: Griffith University, SCT
  9.  
  10. I am having difficulty understanding the following code and every book I
  11. get on
  12. the subject does not explain the multiple MACROS that are in the
  13. definition.
  14.  
  15. extern unsigned int _NEAR _CDECL _osversion;
  16.  
  17. /* where _NEAR and _CDECL are macros defined as:*/
  18.  
  19. #ifndef NO_KEYS
  20.     #define _CDECL cdecl
  21.     #define _NEAR near
  22. #else
  23.     #define _CDECL
  24.     #define _NEAR
  25. #endif 
  26.  
  27. /* There is only two places where cdecl and near are mentioned in the rest
  28. of
  29. the program - the following appears once in two seperate header files */
  30.  
  31. #define _NEAR near
  32. #define _CDECL cdecl
  33.  
  34. /* I am attempting to make this program ansi C compilable, and am stuck on
  35. this
  36. as I dont understand what the above code is doing. Any help would be
  37. greatly
  38. appreciated. Kind Regards, Thea Cassel  tcassel@sisyphus.cit.gu.edu.au
  39. */
  40.  
  41.  
  42. -- 
  43. .-----------------------------------------------------------------------.
  44. | The gateway is Brazerko Communications'; the opinions are the user's. |
  45. | sales@brazerko.com   info@brazerko.com ('bot)   +1 860 886 1441 (BBS) |
  46. `-----------------------------------------------------------------------'
  47.